<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<c-rt:set scope="request" var="theForm" value="theForm"/>
<c-rt:if test="${! empty param.theForm }">
	<c-rt:set scope="request" var="theForm" value="${param.theForm}"/>
</c-rt:if>
<c-rt:set var="params" value="${pu:addToList('paras', param.parentId)}"/>
<c-rt:set var="cqts" value="${pu:queryByHql('from CommonQuestionType where parent.id=?', params, null)}"/>
	<script language="javascript">
	$(document).ready( function() {

		$('#cqtSub${param.zonePostfix}').change(function(){
			var form;
			doAR('<%=application.getContextPath() %>/cs/page.do?iamlazy=level3List&parentId='+document.${theForm}.class2.value+'&workFlowNodeId=${param.workFlowNodeId}&allowBackward=${param.allowBackward}&parentWorkOrderNodeId=${param.parentWorkOrderNodeId}&zonePostfix=${param.zonePostfix}&theForm=${theForm}', 'commonQuestionTypeZone${param.zonePostfix}', form, function(){
				$('#mustInquireZone${param.zonePostfix}').html("");
				$('#forwardOrderZone${param.zonePostfix}').html("");
			});
		});
	});
	</script>
<select name="class2" id="cqtSub${param.zonePostfix}">
	<option value="">请选择</option>
	<c-rt:forEach items="${cqts}" var="cqt">
		<option value="${cqt.id }" <c-rt:if test="${cqt.id==param.class2 }">selected="selected"</c-rt:if>>${cqt.name }</option>
	</c-rt:forEach>
</select>